//
//  LGMessageViewController.swift
//  01-Weibo项目练习-1
//
//  Created by 李李刚 on 16/3/2.
//  Copyright © 2016年 李李刚. All rights reserved.
//

import UIKit

class LGMessageViewController: LGVisaViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        if isLogon{
            
            
        }else{
            
            self.baseView.setpageinfo("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            
            return
            
        }
        
        
        
        setupUI()
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    func setupUI(){
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: nil, title: "发现群", target: self, action: "faxian")
        
    }
    
    func faxian(){
        
        print("发现群")
        
        //初始化一个新的控制器
        let vc = UIViewController()
        
        vc.view.backgroundColor = UIColor.blueColor()
        
        //跳转控制器
        
        navigationController?.pushViewController(vc, animated: true)
        
    }
    
    

}
